package com.usian.apis.wemedia;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.wemedia.dtos.WmMaterialDto;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialControllerApi {

    /**
     * 上传图片
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);
//查询
 ResponseResult findList(@RequestBody WmMaterialDto dto);
    /**
     * 删除图片
     * @param id
     * @return
     */
    ResponseResult delPicture(Integer id);
    //收藏图片和取消图片
    ResponseResult cancelCollectionMaterial(@PathVariable("id") Integer id);

    ResponseResult collectionMaterial(@PathVariable("id") Integer id);
}